package com.wellink.android_demo.com.wellink.android_demo.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.Button;
import android.widget.Toast;

public class MyButton extends Button {

    public MyButton(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        super.onTouchEvent(event);

        Toast.makeText(getContext(),"Hello,You Touch me.",Toast.LENGTH_SHORT).show();

        return  true;
    }


}
